import { LoginTabKeyEnums } from "@/enums"

interface RegisterWraperProps {
  onChange: (e: LoginTabKeyEnums) => void
}

export default function RegisterWraper({
  onChange
}: RegisterWraperProps) {

  function onJumpToLogin() {
    onChange(LoginTabKeyEnums.Login)
  }

  return (
    <div className="w-full mt-28">
      <h2 className="text-[32px] text-left font-bold">注 册</h2>
      <div className="mt-4">
        <p className="text-orange-700 cursor-pointer" onClick={onJumpToLogin}>已有账号，请登录</p>
      </div>

    </div>
  )
}